Skip to content

fix(docker): resolve patch apply errors, build timeouts, and workspac…#3

Merged
RonakDarji1997 merged 1 commit into
mainfrom
fix/pending
Jun 27, 2026
Merged

fix(docker): resolve patch apply errors, build timeouts, and workspac…#3
RonakDarji1997 merged 1 commit into
mainfrom
fix/pending

Conversation

@RonakDarji1997

Copy link
Copy Markdown
Collaborator

…e linking

Fixes multiple issues affecting Docker container builds on macOS and Synology NAS:

  • Patch Filename Encoding: Renamed %2F-encoded patch files in opencode/patches/ to use hyphenation and updated patchedDependencies in opencode/package.json. This resolves EINVAL (read()) errors on Linux/NAS storage mounts.
  • Docker Base Images: Switched opencode/Dockerfile.forge and forge-ui/Dockerfile from Alpine (musl) to Debian (glibc) for native dependency compatibility.
  • Build Context Bloat: Created .dockerignore files for root and services, reducing BuildKit context transfer from 11.55 GB to ~377 kB.
  • Frontend Workspace Build: Linked opencode/node_modules and added node_modules/.bin to PATH in forge-ui/Dockerfile to resolve missing vite binary (exit code 127).
  • Base64 Normalization: Added base64 padding to _normalize_project_id in forge_server/api/runtime_errors_routes.py to prevent DBAPIError queries.

…e linking

Fixes multiple issues affecting Docker container builds on macOS and Synology NAS:

- Patch Filename Encoding: Renamed %2F-encoded patch files in opencode/patches/ to use hyphenation and updated patchedDependencies in opencode/package.json. This resolves EINVAL (read()) errors on Linux/NAS storage mounts.
- Docker Base Images: Switched opencode/Dockerfile.forge and forge-ui/Dockerfile from Alpine (musl) to Debian (glibc) for native dependency compatibility.
- Build Context Bloat: Created .dockerignore files for root and services, reducing BuildKit context transfer from 11.55 GB to ~377 kB.
- Frontend Workspace Build: Linked opencode/node_modules and added node_modules/.bin to PATH in forge-ui/Dockerfile to resolve missing vite binary (exit code 127).
- Base64 Normalization: Added base64 padding to _normalize_project_id in forge_server/api/runtime_errors_routes.py to prevent DBAPIError queries.
@RonakDarji1997 RonakDarji1997 requested a review from a team as a code owner June 27, 2026 11:32
@RonakDarji1997 RonakDarji1997 merged commit d105a76 into main Jun 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant